package com.wuhao.shootclient.adapter;


import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wuhao.shootclient.R;
import com.wuhao.shootclient.bean.BluetoothDataVo;

import java.util.List;

public class BlueDialogAdapter extends BaseQuickAdapter<BluetoothDataVo, BaseViewHolder> {

    public BlueDialogAdapter(@Nullable List<BluetoothDataVo> data) {
        super(R.layout.item_blue_dialog, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, BluetoothDataVo item) {
        //只展示有name的蓝牙设备  没有name的蓝牙设备部展示
        if (!item.equals("")){
            helper.setText(R.id.tv_blue_name, item.getName());
        }
    }
}
